package com.hua.designpattern.structural.bridge;

public class Square extends Shape {
	private int x;
	private int y;
	private int length;

	public Square(int x, int y, int length, DrawInterface drawImpl) {
		super(drawImpl);
		this.x = x;
		this.y = y;
		this.length = length;
	}

	@Override
	public void draw() {
		drawImpl.draw(this);
	}

	@Override
	public String toString() {
		return super.toString() + "[Circle:x=" + x + " y=" + y + " length=" + length + "]";
	}
}
